const Router = require('koa-router')
const router = new Router()

const {index, upload } = require('../controllers/home')
const { getAnswerList } = require('../controllers/answer')

// 首页
router.get('/', index)
// 首页推荐回答
router.get('/home/recommend', getAnswerList)

// 文件上传
router.post('/upload', upload)

module.exports = router